-- GENERATED SPELL FOR [Lost Drakkari Spirit] --


function spell0_29129(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(37361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29129', 1000, 1)
end

function spell1_29129(pUnit, Event) --@Spirit Burst,n/a--
pUnit:FullCastSpellOnTarget(24050,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29129', 519, 1)
end

function Sorts_29129(pUnit, Event)
local choix_sorts_29129 = math.random(0, 1)
if choix_sorts_29129 == 0 then
pUnit:RegisterEvent('spell0_29129', 1, 1)
end
if choix_sorts_29129 == 1 then
pUnit:RegisterEvent('spell1_29129', 1, 1)
end
end

function mob29129_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29129', math.random(1500, 3000), 1)
end

function mob29129_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29129_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29129_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29129, 1, 'mob29129_Action')
RegisterUnitEvent(29129, 2, 'mob29129_Leave')
RegisterUnitEvent(29129, 3, 'mob29129_Kill')
RegisterUnitEvent(29129, 4, 'mob29129_Die')
